package com.sxpi.convert;

import com.sxpi.model.entity.Role;
import com.sxpi.model.entity.UserRole;
import com.sxpi.model.vo.RoleVo;
import com.sxpi.model.vo.UserRoleVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface RoleConvert {
    RoleConvert INSTANCE = Mappers.getMapper(RoleConvert.class);

    RoleVo convertVoToEntity(Role role);
    List<RoleVo> convertVoToEntity(List<Role> role);
}
